/**
 *  Main File, everything starts here 
 *
 *  Copyright (c) 2009 Daniel Kornhauser.  All rights reserved.
 *  @author Daniel Kornhauser
 */

import java.awt.Dimension;
import java.io.File;
import java.util.ArrayList;
import javax.swing.JFrame;



public class SweepViewApp
{
    static R r;
    static SweepViewGui sweepViewGui;
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) 
    {
    	SweepViewApp app = new SweepViewApp();

        r.initR();
        app.sweepViewGui.autoLoad();
    }

    public SweepViewApp ()
    {
        sweepViewGui = new SweepViewGui();
    	r = new R(sweepViewGui);
        initGUI(r);
    }

    private void initGUI(R r) {
        File file = new File("wolf.nlogo");
        //ArrayList<Object> widgetArray = ModelReader.getWidgetArray(file);
        sweepViewGui.initSweepView(r);
        sweepViewGui.gdc.sweepViewGui = sweepViewGui;
        sweepViewGui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        sweepViewGui.setVisible(true);

    }



}